#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	if (1)
	{
		printf("hehe\n");
	}
	while (1)
	{
		printf("hehe\n");
	}
	int i = 1;
	while (i <= 10)
	{
		printf("%d\n", i);
		i++;
	}
	int num;
	scanf("%d", &num);
	while (num)
	{
		printf("%d\n", num % 10);
		num /=10;
	}
	for (int i = 1; i <= 10; i++)
	{
		printf("%d\n", i);

	}
	int rev = 0;
	for (int i = 0; i <= 100; i++)
	{
		if (i % 3 == 0)
		{
			rev = rev + i;
		}
	}
	printf("%d\n", rev);

	int rev = 0;
	int i = 1;
	while (i <= 100)
	{
		if (i % 3 == 0)
		{
			rev = rev + i;
		}
		i++;
	}
	printf("%d\n", rev);
	int i = 1;
	do
	{
		printf("%d\n", i);
		i++;
	} while (i <= 10);
	int count = 0;
	int num;
	scanf("%d", &num);
	do
	{
		count++;
		num /= 10;

	} while (num);
	printf("%d\n", count);
	return 0;
}